import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import Center from '@/components/Center'
import Doc from '@/components/Doc'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'HelloWorld',
      component: HelloWorld,
      children: [
        {
          path: '',
          name: 'center',
          component: Center
        },
        {
          path: 'doc',
          name: 'doc',
          component: Doc
        }
      ]
    }
  ]
})
